package com.ljx.itbbs.server.article.domain.vo.req;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-03-23  16:59
 */
@Data
public class ArticleSaveReq {

    @NotEmpty
    @ApiModelProperty("标题")
    private String title;

    @NotEmpty
    @ApiModelProperty("内容")
    private String content;

    @NotEmpty
    @ApiModelProperty("封面")
    private String cover;

    @NotNull
    @ApiModelProperty("文章板块")
    private Long plateId;

    @NotNull
    @ApiModelProperty("文章分类")
    private Long categoryId;

    @ApiModelProperty("文章标签")
    private List<String> tagList;

    @ApiModelProperty("附件资源")
    private List<Long> resourceList;

    @ApiModelProperty("是否收费")
    private Integer isFree;

    @ApiModelProperty("所需积分")
    private Integer integral;


}
